package aar.test.tessocr.baseApplication;

import android.app.Application;



import aar.test.tessocr.model.CabDetailModel;
import aar.test.tessocr.model.loginModel;

import okhttp3.RequestBody;
import com.lzy.okgo.OkGo;
import com.lzy.okgo.model.Response;

/**
 * Created by 149-201605 on 2016/8/8.
 */
public class BaseApplication extends Application {


    private static BaseApplication mBaseApplication = null;

    private Boolean isLogin=false;

    private loginModel loginBean;

    public Boolean getLogin() {
        return isLogin;
    }

    public void setLogin(Boolean login) {
        isLogin = login;
    }

    public loginModel getLoginBean() {
        return loginBean;
    }

    public void setLoginBean(loginModel loginBean) {
        this.loginBean = loginBean;
    }

    private String  scanPhoneNub;

    public String getScanPhoneNub() {
        return scanPhoneNub;
    }

    public void setScanPhoneNub(String scanPhoneNub) {
        this.scanPhoneNub = scanPhoneNub;
    }

   private  CabDetailModel mCabDetailModel=null;

    public CabDetailModel getmCabDetailModel() {
        return mCabDetailModel;
    }

    public void setmCabDetailModel(CabDetailModel mCabDetailModel) {
        this.mCabDetailModel = mCabDetailModel;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        mBaseApplication = this;

        OkGo.getInstance().init(this);


    }



    public static BaseApplication getIntance() {
        if (null == mBaseApplication) {
            mBaseApplication = new BaseApplication();
        }
        return mBaseApplication;
    }




}
